package com.example.foo.ftt.model;

import com.example.foo.ftt.FttLevel;

/**
 * 网体用户
 */
@com.baomidou.mybatisplus.annotation.TableName("fttuser")
public class FttUser extends com.example.core.model.BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 状态
	 */
	public enum State {
		normal("正常"),
		muted("禁言"),
		banned("禁止")
		;
		public final String text;
		State(String text) {
			this.text = text;
		}
	}

	/**
	 * 中军卡状态
	 */
	public enum CardzState {
		pending("等待"),
		success("成功"),
		failure("失败")
		;
		public final String text;
		CardzState(String text) {
			this.text = text;
		}
	}

	private FttUser.State state;

	private String roleLevel;

	private FttLevel fttLevel;

	private String cellphone;

	private String referralCode;

	private Long referralParentUserId;

	private String referralParentUserIdPath;

	private Long parentUserId;

	private String parentUserIdPath;

	private String memo;

	private Long userId;

	private String idname;

	private FttUser.CardzState cardzState;

	private String cardzCellphone;

	public FttUser() {
	}

	/**
	 * @return 状态
	 */
	public FttUser.State getState() {
		return state;
	}

	/**
	 * @param state 状态
	 */
	public void setState(FttUser.State state) {
		this.state = state;
	}

	/**
	 * @return 角色级别
	 */
	public String getRoleLevel() {
		return roleLevel;
	}

	/**
	 * @param roleLevel 角色级别
	 */
	public void setRoleLevel(String roleLevel) {
		this.roleLevel = roleLevel;
	}

	/**
	 * @return 网体级别
	 */
	public FttLevel getFttLevel() {
		return fttLevel;
	}

	/**
	 * @param fttLevel 网体级别
	 */
	public void setFttLevel(FttLevel fttLevel) {
		this.fttLevel = fttLevel;
	}

	/**
	 * @return 手机号
	 */
	public String getCellphone() {
		return cellphone;
	}

	/**
	 * @param cellphone 手机号
	 */
	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}

	/**
	 * @return 推荐码
	 */
	public String getReferralCode() {
		return referralCode;
	}

	/**
	 * @param referralCode 推荐码
	 */
	public void setReferralCode(String referralCode) {
		this.referralCode = referralCode;
	}

	/**
	 * @return 推荐上级用户ID
	 */
	public Long getReferralParentUserId() {
		return referralParentUserId;
	}

	/**
	 * @param referralParentUserId 推荐上级用户ID
	 */
	public void setReferralParentUserId(Long referralParentUserId) {
		this.referralParentUserId = referralParentUserId;
	}

	/**
	 * @return 推荐上级用户ID路径
	 */
	public String getReferralParentUserIdPath() {
		return referralParentUserIdPath;
	}

	/**
	 * @param referralParentUserIdPath 推荐上级用户ID路径
	 */
	public void setReferralParentUserIdPath(String referralParentUserIdPath) {
		this.referralParentUserIdPath = referralParentUserIdPath;
	}

	/**
	 * @return 上级用户ID
	 */
	public Long getParentUserId() {
		return parentUserId;
	}

	/**
	 * @param parentUserId 上级用户ID
	 */
	public void setParentUserId(Long parentUserId) {
		this.parentUserId = parentUserId;
	}

	/**
	 * @return 上级用户ID路径
	 */
	public String getParentUserIdPath() {
		return parentUserIdPath;
	}

	/**
	 * @param parentUserIdPath 上级用户ID路径
	 */
	public void setParentUserIdPath(String parentUserIdPath) {
		this.parentUserIdPath = parentUserIdPath;
	}

	/**
	 * @return 备注
	 */
	public String getMemo() {
		return memo;
	}

	/**
	 * @param memo 备注
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}

	/**
	 * @return userId
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * @param userId userId
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	/**
	 * @return 身份证姓名
	 */
	public String getIdname() {
		return idname;
	}

	/**
	 * @param idname 身份证姓名
	 */
	public void setIdname(String idname) {
		this.idname = idname;
	}

	/**
	 * @return 中军卡状态
	 */
	public FttUser.CardzState getCardzState() {
		return cardzState;
	}

	/**
	 * @param cardzState 中军卡状态
	 */
	public void setCardzState(FttUser.CardzState cardzState) {
		this.cardzState = cardzState;
	}

	/**
	 * @return 中军卡手机号
	 */
	public String getCardzCellphone() {
		return cardzCellphone;
	}

	/**
	 * @param cardzCellphone 中军卡手机号
	 */
	public void setCardzCellphone(String cardzCellphone) {
		this.cardzCellphone = cardzCellphone;
	}

}
